package xyz.jiang.common.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

@Data
@ToString
public class RegistLoginDTO {

    @NotBlank(message = "手机号不能为空")
    @Length(min = 11,max = 11,message = "手机号长度不正确")
    private String mobile;

    @NotBlank(message = "验证码不能为空")
    private String code;
}
